package com.beiyou.authority;

import com.beiyou.config.WebConfig;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;

/**
 * @author wzby
 * @Date: 2022/10/16 10:56
 */
@ConditionalOnProperty(prefix = "beiyou.authority",value = "enable", havingValue = "true", matchIfMissing = false)
@Import(WebConfig.class)
public class AuthorityAutoConfiguration {

//    @Bean
//    public WebConfig webConfig(){
//        return new WebConfig();
//    }
//    @Import(WebConfig.class)作用一致

}
